if(DEFINED AMBA_SDK_DIR)
    message(STATUS "AMBA_SDK_DIR: ${AMBA_SDK_DIR}")
else()
    message(FATAL_ERROR "not defined AMBA_SDK_DIR")
endif()

list(
    APPEND
    AMBA_SDK_INCLUDE_DIRS
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/include
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/ambacv
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/ambacv/cvapi
)

list(
    APPEND
    AMBA_SDK_LIBS
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libAmbaCV_Flexidag.a
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libambadag.a
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libambamal.so
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libflexidagio.a
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libEGL.so
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libIMGegl.so 
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libsrv_um.so 
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libGLESv2.so 
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libglslcompiler.so  
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libusc.so 
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libdrm.so
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libfreetype.a
)

list(
    APPEND
    AMBA_SDK_OSS_LIBS
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libboost_thread.so
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libboost_filesystem.so
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libboost_json.so
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libboost_atomic.so
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libboost_container.so
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libtiff.so
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libjpeg.so
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libpng.so
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libjsoncpp.so
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libopencv_core.so
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libopencv_calib3d.so
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libopencv_highgui.so
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libopencv_features2d.so
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libopencv_flann.so
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libopencv_imgcodecs.so
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libopencv_imgproc.so
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libz.so
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/liblog4cxx.so
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libapr-1.so
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libaprutil-1.so
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libexpat.so
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/libuuid.so
)

list(
    APPEND
    AMBA_SDK_OSS_INCLUDE_DIRS
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/eigen3
    ${AMBA_SDK_DIR}/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/opencv4
)
